Fix the offsets of the input-only window if we also have a visible window.
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Apr 2007 21:45:39 +0000 (21:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 28 Apr 2007 21:45:39 +0000 (21:45 +0000)
2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
        of the input-only window if we also have a visible window.
        (#405089)

svn path=/trunk/; revision=17683

ChangeLog
gtk/gtkeventbox.c

index 6234d67f3cad75315e83817db8fe37099e7bb870..deccafd791ae4cdd064299f5dc8b725414c1e8f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-28  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
+       of the input-only window if we also have a visible window. 
+       (#405089)
+
 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkliststore.c (gtk_list_store_set_valist_internal):
index bac1605d2fd646cee853d3e2a9d7f1324182cd4e..8854609760940ba2b819089c5e360d6183548b93 100644 (file)
@@ -369,7 +369,6 @@ gtk_event_box_set_above_child (GtkEventBox *event_box,
 }
 
 
-
 static void
 gtk_event_box_realize (GtkWidget *widget)
 {
@@ -420,7 +419,10 @@ gtk_event_box_realize (GtkWidget *widget)
   if (!visible_window || priv->above_child)
     {
       attributes.wclass = GDK_INPUT_ONLY;
-      attributes_mask = GDK_WA_X | GDK_WA_Y;
+      if (!visible_window)
+        attributes_mask = GDK_WA_X | GDK_WA_Y;
+      else
+        attributes_mask = 0;
 
       priv->event_window = gdk_window_new (widget->window,
                                           &attributes, attributes_mask);